#ifndef __MUX_HH
#define __MUX_HH

#include <iostream>
#include <fstream>
#include <string>

#include "TSystem.h"
#include "TEnv.h"
#include "TRandom.h"
#include "Settings.hh"

using namespace std;

class Mux {
public:
  Mux();
  Mux(const char*, Settings*);
  ~Mux();
  void ReadMux();
  void PrintMux();
  void SetFile(const char* filename){
    fInputFile = filename;
  };
  const string InputFile(){
    return fInputFile;
  };
  int StripNr(unsigned short id, int quadr, bool strip);
private:
  int fVerbose;
  string fInputFile;
  
  Settings* fSett;

  double fCDPosFWHM;
  double fCDRingPos[4][16];
  double fCDStripPos[4][16];

  ClassDef(Mux, 1);
};

#endif
